﻿@namespace MudBlazor.UnitTests.TestComponents
<MudPopoverProvider/>

<MudDateRangePicker id="picker" @ref="_picker" Label="With action buttons" @bind-DateRange="DateRange">
    <PickerActions>
        <MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.ClearAsync(CloseOnClear))">Clear</MudButton>
    </PickerActions>
</MudDateRangePicker>

@code {
    private MudDateRangePicker _picker;

    [Parameter]
    public DateRange DateRange { get; set; }

    [Parameter]
    public bool CloseOnClear { get; set; }
}